package com.test.booksystem.model;

import lombok.Data;

@Data
public class PageRequest {
    private Integer pageNumber;
    private Integer page = 10;
    private Integer offset;

    public Integer getOffset() {
        return (pageNumber - 1) * page;
    }
}
